package com.project.service.impl;

import com.project.bean.EmployeeBean;
import com.project.bean.ProcessBean;
import com.project.bean.ProjectBean;
import com.project.mapper.IProcessMapper;
import com.project.service.IProcessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 工程进度接口实现类
 */
@Service
@Transactional
public class ProcessServiceImpl implements IProcessService {
    @Autowired
    private IProcessMapper mapper;

    @Override
    public void finishProject(int processId) {
        mapper.finishProject(processId);
    }

    @Override
    public void addEmployee(ProcessBean process) {
        mapper.addEmployee(process);
    }
}
